package net.lahuobao.finance.dao;


import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import net.lahuobao.finance.entity.accredit.Accredit;

import java.util.ArrayList;
import java.util.Date;
import java.util.Map;

@Repository("accreditDao")
public interface AccreditMapper {
   

    Accredit selectByPrimaryKey(Integer accreditId);

   
    ArrayList<Accredit> selectAccreditListByOrganizationId(Integer organizationId);


    ArrayList<Map<String, Object>> selectSummaryAccreditData(@Param("from") Date from, @Param("to") Date to, @Param("organizationName") String organizationName);


    Accredit selectByPrimaryKeyForUpdate(Integer accreditId);


    int updateTollAndUsableById(Accredit accredit);
}